package cn.com.xky.properties.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.UUID;

/**
 * Created by EKEYXIA on 2017/8/9.
 */
@Component//注入到spring 容器中
public class DemoProperties {

    @Value("${demo.name}")
    private String name;

    @Value("${demo.sex}")
    private String sex;

    @Value("${demo.phone}")
    private Integer phone;

    @Value("${home.name}")
    private String homeName;

    @Value("${home.province}")
    private String homeProvince;

    @Value("${properties.value}")
    private String properties;

    @Value("${user.id}")
    private long userID;

    @Value("${user.age}")
    private Integer userAge;

    @Value("${user.desc}")
    private String userDesc;

    @Value("${user.uuid}")
    private String userUuid;

    public void setUserID(long userID) {
        this.userID = userID;
    }

    public void setUserAge(Integer userAge) {
        this.userAge = userAge;
    }

    public void setUserDesc(String userDesc) {
        this.userDesc = userDesc;
    }

    public void setUserUuid(String userUuid) {
        this.userUuid = userUuid;
    }

    public long getUserID() {
        return userID;
    }

    public Integer getUserAge() {
        return userAge;
    }

    public String getUserDesc() {
        return userDesc;
    }

    public String getUserUuid() {
        return userUuid;
    }

    public void setProperties(String properties) {
        this.properties = properties;
    }

    public String getProperties() {
        return properties;
    }

    public String getHomeProvince() {
        return homeProvince;
    }

    public void setHomeName(String homeName) {
        this.homeName = homeName;
    }

    public void setHomeProvince(String homeProvince) {
        this.homeProvince = homeProvince;
    }

    public String getHomeName() {
        return homeName;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public void setPhone(Integer phone) {
        this.phone = phone;
    }

    public String getName() {
        return name;
    }

    public String getSex() {
        return sex;
    }

    public Integer getPhone() {
        return phone;
    }
}
